//
//  HSelectItemView.h
//  linktuIOS
//
//  Created by 俊松何 on 2017/3/22.
//  Copyright © 2017年 tianxie. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HSelectItemView;
@protocol HSelectItemViewDelegate <NSObject>

-(void)selectitemview:(HSelectItemView *)view selectIndex:(NSInteger)index;

@end

@interface HSelectItemView : UIView
@property(nonatomic,weak) id<HSelectItemViewDelegate> delegate;

@property(nonatomic,strong ,readonly) NSArray *titles;


-(instancetype)initWithFrame:(CGRect)frame withtitles:(NSArray *)titles;

-(void)setTitleWithProgress:(CGFloat)pregresss
                sourceIndex:(NSInteger)sourceIndex
                targetIndex:(NSInteger)targetIndex;

-(void)setCurrentIndex:(NSInteger)index;

@end
